<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
      <!-- <tr>
        <th>#</th>
        <th>商品名称</th>
        <th>价格</th>
        <th>标签</th>
        <th>操作</th>
      </tr> -->
      <slot name="header"> </slot>
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="(item, index) in obj" :key="item.id" :inde="index">
        <!-- <td>{{ obj.id }}</td>
        <td>{{ obj.goods_name }}</td>
        <td>{{ obj.goods_price }}</td>
        <td>{{ obj.tags }}</td>
        <td><button class="btn btn-danger btn-sm">删除</button></td> -->
        <slot name="mytd" :row="item"> </slot>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  props: ["obj"],
  data() {
    return {};
  },
};
</script>